import React from 'react';
import qs from 'qs'
import axios from "axios";


axios.defaults.timeout = 100000;
axios.defaults.baseURL = "http:/127.0.0.1:8081/";
const QsHttp = () => {

    function qspost(url, data) {

        axios.post(url, qs.stringify(data)).then(
            (response) => {
                //关闭进度条
                resolve(response.data);
            },
            (err) => {
                reject(err);
            }
        );

    }


}
export default QsHttp;